<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>超值秒杀</title>
<meta name="decorator" content="default" />
<meta name="full-screen" content="yes">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">


<jsp:include page="/static/member/themes/default/header.jsp" />

<script src="${ctxStatic}/member/themes/default/indexSeckill2.js" type="text/javascript"></script>



</head>
<body>
	<div class="main">
		<div>
			<div>
				<div class="ztContent">
				
					 <c:if test="${uid eq '34' }">
					 	<div class="c2">
						</div>
							<p style="font-size:18px;color:red"><b>${config.notice }</b></p>
					 </c:if>
					 
					  <c:if test="${uid ne '34' }">
						<div class="c1">
							<div class="act_time" style="margin-bottom:5px;">秒杀时间：<fmt:formatDate value="${config.startTime}" pattern="MM月dd日 "/>至<fmt:formatDate value="${config.endTime}" pattern="MM月dd日 "/></div>
							<p>${config.notice }</p>
						</div>
				 	   </c:if>
					
				</div>
				<div class="ztContent">
						<c:if test="${member.score lt config.minScore }">
							<span color="red">尊敬的微会员，参与秒杀活动至少需要积分<strong>${config.minScore }</strong>分，而您现在只有<strong>${member.score }</strong>分,试试签到和转发赚点积分后再参与秒杀吧.</span>
						</c:if>
					<c:forEach items="${ page.list}"  var="seckill">
						<form:form id="form${seckill.id }" action="${ctxFront}/member/doseckill" name="form${seckill.id }" method="POST">
						<input type="hidden" name="sid" id="sid${seckill.id }" value="${seckill.id }" />
						<input	type="hidden" name="style" value="${style}"/>
						<input type="hidden" name="price" id="price${seckill.id }" value="${seckill.price }" />
						<input type="hidden" name="wechatId" id="member${wechatId }" value="${wechatId }" />
						<input name="seckill.id" type="hidden"   id="seckill${wechatId }" value="${seckill.id }" /> 
						<input type="hidden" name="uid" id="uid${wechatId }" value="${uid }" />
						<input type="hidden" id="surplus101${seckill.id }" name="surplus101${seckill.id }" value="${seckill.amount }">
						<input type="hidden" id="nowDate" name="nowDate" value="${nowDate }"> 
						<input	type="hidden" id="begin_time" value='<fmt:formatDate value="${seckill.startTime}" pattern="yyyy-MM-dd HH:mm:ss"/>'>
						<input type="hidden" id="nextbegin_time" name="nextbegin_time" value="2013-09-17 11:30:00"> 
						<input type="hidden" id="end_time" name="end_time" value='<fmt:formatDate value="${seckill.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/>'>
						<div class="c3" align="center" style="height:auto">
							<div class="cp" align="center" style="height:auto">
								<div class="prizeBox fleft"  style="height:auto">
									<div class="prize" style="height:auto">
										<img src="${ctxUser }/seckill/${seckill.picPath }"	width="240" height="270" class="prizeImg" onerror="this.src='${ctxStatic}/images/zanwutupian.jpg'"> 
										<div class="prizeTxt">
											<p class="prizeInfo" id="prizeInfo1">
												<span class="redFont">${seckill.price }</span>元秒杀<span class="redFont">${seckill.name }</span>
											</p>
											<p class="prizeInfo" id="prizeInfo1">本次秒杀剩余数量<span class="redFont">${seckill.amount }</span>个</p>
											<br>
											<p></p>
											<p></p>
											<div id="cjcontent${ seckill.id}" >
												<p class="prizeCount" >
													<span class="redFont"  >当前时段奖品剩余：${seckill.amount }个</span>
												</p>
												<p class="prizeCount" >
													<span>${seckill.remarks } </span>
												</p>
											</div>
											<button type="submit" class="btn btn-danger" id="miaoshabutton${ seckill.id}"  disabled="disabled"  name="miaoshabutton" <c:if test="${member.score lt config.minScore }">style="display:none" </c:if>  >${seckill.price }元秒杀</button>
										</div>
									</div>
								</div>
								
							</div>
						</div>
						</form:form>
					</c:forEach>
					
				</div>
			</div>
			<p></p>
		</div>
	</div>
	
	<c:if test="${uid ne '34' }">
		<jsp:include page="/static/member/themes/default/footer.jsp">
			<jsp:param value="${uid }" name="uid"/>
		</jsp:include>
	</c:if>
	
</body>
</html>
